Hexo
Commands
Pipeline
1 2 3
| hexo generate
hexo deploy
|
Installation
1 2 3 4 5 6 7
| sudo npm install -g hexo-cli
npm uninstall hexo-renderer-marked --save
npm install hexo-renderer-kramed --save
npm install hexo-math --save
|
安装完成后,下载主题 theme 并在站点配置文件中选择主题。
之后,再在 next
的配置文件中将 mathjax
设置为 true
。
在每一篇博客的上方将mathjax
标志设置成 true
。
1 2 3 4 5
| --- title: index.html tags: mathjax: true --
|
MarkDown
Code Zone
Multi Lines
1 2 3 4
| ` ` ` c++ # include <iostream> return 0 ` ` `
|
1 2
| # include <iostream> return 0
|
Single Lines
return 0
Insert Images
1 2 3
| <img src='folder_name/img.jpg' align="justify">
<img src='folder_name/img.jpg' width=600px>
|
Super Link
1
| [click here](https: //eulring.github.io/)
|
click here
Fonts
1
| _eulring_ __eulring__ ___eulring___ ~~eulring~~ `eulring`
|
_eulring_ eulring _eulring_ eulring eulring
Reference
1 2 3 4
| > Eulring <br/> > Eulring <br/> >> Eulring <br/> >>> Eulring <br/>
|
Eulring
Eulring
Eulring
Eulring
List
- a
- b
- c
Table
1 2 3
| | DataSet | Scale | categories | generations | | :------| ------: | ------: |:------: | | CoCo | 120000 | 91 | - |
|
DataSet |
Scale |
categories |
generations |
CoCo |
120000 |
91 |
- |
Separate Line
Equation
如果 Hexo 安装过 mathjax,还可以插入公式:
Reference
https://www.jianshu.com/p/7ab21c7f0674